package com.peng.spring.eg2;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author peng
 * @Date 2024-04-16 16:47
 */
public class TestMapper {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("com.peng.spring.eg2");
        CommentMapper commentMapper = context.getBean(CommentMapper.class);
        System.out.println("commentMapper = " + commentMapper);
    }
}
